import myAxios from '../utils/myAxios'

export const registerAPI = data => {
  return myAxios({
    method: 'post',
    url: '/h5/user/register',
    data
  })
}

export const loginAPI = data => {
  return myAxios.post('/h5/user/login', data)
}
// 获取用户信息
export const getUserInfoAPI = () => {
  return myAxios.get('/h5/user/currentUser')
}
